package com.lhn.mapper;

import com.lhn.entity.Menu;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author lhn
 * @date 2024-10-09 14:55
 */

@Mapper
public interface MenuMapper {

//    @Select("SELECT * FROM t_menu LIMIT #{index}, #{limit}")
    public List<Menu> findAll(int index, int limit);

    List<Menu> findAllWithType(int index, int limit);

//    @Select("SELECT COUNT(*) FROM t_menu")
    public int count();
    public Menu findById(long id);
    public void save(Menu menu);
    public void update(Menu menu);
    public void deleteById(long id);

}
